package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.DbanInformation;

import java.util.List;

@Mapper
public interface DbanInformationMapper extends MPJBaseMapper<DbanInformation> {

    List<DbanInformation> queryDbanInfomation(DbanInformation dbanInformation);

    List<Integer> groupByYear();

    int addViewCount(@Param("id") Integer id);

    List<DbanInformation> wgyhcgHeat();

    List<DbanInformation> subjectHeat(@Param("year") Integer year);

    List<DbanInformation> queryTop(@Param("year") Integer year, @Param("type") String type);

    List<DbanInformation> queryDbanInfomationRepeat(DbanInformation dbanInformation);

    int updateStatusBatch(@Param("status") Integer status, @Param("list") List<Integer> ids, @Param("remark") String remark);

    List<DbanInformation> queryDbanInformationByTop(@Param("isTop") Integer isTop);


    //========================================================================================================
    List<DbanInformation> queryBaseDbanInformationByTop(@Param("type") String type,
                                                        @Param("isTop") Integer isTop);

    List<DbanInformation> queryFiveOneDbanInformationByTop(@Param("fiveOneType") String fiveOneType,
                                                           @Param("isTop") Integer isTop);
    //========================================================================================================
}
